
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人中心</title>
    <style>
    .person{
        height:500px;
        overflow:hidden;
    }
    .personLeft{
        width:16%;
        height:100%;
        background-color:#ddd;
        float:left;
        margin:0;
    }
    .personLeft dt{
        margin:10px;
    }
    .personRight{
        width:83%;
        height:100%;
        float:right;
        background-color:#ccc;
    }
    </style>
</head>
<body>
    <?php 
        include "header.php";
    ?>
    <h3>个人中心 &raquo;</h3>
    <hr>

    <div class="person">
        <dl class="personLeft">
            <dt><a href="index.php?action=order">|--查看我的订单</a></dt>
            <dt><a href="index.php?action=infoIndex">|--查看联系方式</a></dt>
            <dt><a href="index.php?action=infoAdd">|--添加联系方式</a></dt>
        </dl>
        <div class="personRight">
        <?php
        $action=isset($_GET['action'])?$_GET['action']:'order';

        switch($action){
            case "order":
                include 'order.php';
            break;
            case "code":
                include 'code.php';
            break;
            case "infoIndex":
                include 'info/index.php';
            break;
            /*case "infoDelete":
                include 'info/delete.php';
            break;*/
            case "infoAdd":
                include 'info/add.php';
            break;
           /* case "infoInsert":
                include 'info/insert.php';
            break;*/
            case "infoEdit":
                include 'info/edit.php';
            break;
            /*case "infoUpdate":
                include 'info/update.php';
            break;*/
        }

        ?>

        </div>
    </div>
</body>
</html>